package com.mybatis.verification;

public class SendMsg {
    public static int sendCheckCode(String user_phone) {
        String mobileNumber = user_phone;//获取验证码的手机号码
        try {
            String str = MobileMessageSend.sendMsg(mobileNumber);

            if("success".equals(str)){
                System.out.println("发送成功！");
                return 0;
            }else{
                System.out.println("发送失败！");
                return 1;
            }


        } catch (Exception e) {
            e.printStackTrace();
            return 3;
        }
    }
}
